package bdz.projects.lavender.cms.model
{
	public class PluginData
	{
		
		protected var _properties:Object;
		protected var _local:XML;
		public var inter:Number;
		public function PluginData(xm:XML)
		{
			_local = xm;
			var props:XMLList = _local.Properties.property;
			var len:Number = props.length();
			_properties = {};
			for(var i:Number = 0;i<len;i++){
				_properties[props[i].@name] = props[i].@value;
			}
		}
		public function get id():String{
			return _local.PluginID.toString();
		}
		public function get name():String{
			return _local.PluginName.toString();
		}
		public function get description():String{
			return _local.PluginDescription.toString(); 
		}
		public function get version():String{
			return _local.PluginVersion.toString();
		}
		public function get type():String{
			return _local.PluginType.toString();
		}
		public function get hasUI():Boolean{
			return Boolean(Number(_local.PluginHasUi.toString()));
		}
		public function get serviceURL():String{
			return _properties.serviceURL; 
		}
		public function get pluginClass():String{
			return _properties.pluginClass;
		}

	}
}
